package org.openharmony.qttool.qml.language;

import com.intellij.openapi.fileTypes.LanguageFileType;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

public class QmlFileType extends LanguageFileType {

    private static final QmlFileType INSTANCE = new QmlFileType();

    public static QmlFileType getInstance() {
        return INSTANCE;
    }

    private QmlFileType() {
        super(QmlLanguage.getInstance());
    }

    @Override
    public @NonNls @NotNull String getName() {
        return "QML File";
    }

    @Override
    public @NotNull String getDescription() {
        return "Qt QML file type";
    }

    @Override
    public @NotNull String getDefaultExtension() {
        return "qml";
    }

    @Override
    public Icon getIcon() {
        return QmlIcons.getFile();
    }
}
